package com.itheima.user.mapper;

import com.itheima.pojo.Order;
import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;
@Mapper
public interface OrderSettingMapper {
//    void add(OrderSetting orderSetting);



    //更新已预约人数
    void editReservationsByOrderDate(OrderSetting orderSetting);

//    long findCountByOrderDate(Date orderDate);

//    //根据日期范围查询预约设置信息
//    List<OrderSetting> getOrderSettingByMonth(Map date);

    //根据预约日期查询预约设置信息
    OrderSetting findByOrderDate(Date orderDate);


}
